from bs4 import BeautifulSoup
import selenium
import selenium.webdriver
import time

def loadpage():
    driver=selenium.webdriver.Firefox()
    driver.get('http://quote.eastmoney.com/center/gridlist.html#hs_a_board"')
    html=driver.page_source
    soup=BeautifulSoup(html,'html5lib',from_encoding='utf8')
    tr=soup.find_all('tr')
    for line in tr:
        for td in line.select("td:nth-child(2)"):  #选区前6个标签
            print(td.get_text())
    

loadpage()



